<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/react.development.js"></script>
    <script src="./js/react-dom.development.js"></script>
    <!-- 引入 babel  将jsx语法 转换为 js语法 -->
    <script src="./js/babel.min.js"></script>
</head>
<body>
    
    <div id="root"></div>
    <script type="text/babel">
      let data = {
        title:'xxxx',
        content:'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        image:"https://img-xhpfm.xinhuaxmt.com/News/202209/dcc1c14968f646d48caec00fcdc8acb8.jpg?x-oss-process=image/resize,w_1000/auto-orient,1/quality,Q_80"

      }  
      let vdom = <idv>
            <h1 style={{border:'1px solid #333'}}>{data.title}</h1>
            <p style={{border:'1px solid #333'}}>{data.content}</p>
            <img src={data.image} alt="" />
        </idv>
        ReactDOM.render(vdom,document.getElementById('root'))
    </script>

</body>
</html>